package org.web.domain;

import java.util.Objects;

/*标签分类*/
public class Classify {
   private Integer id;
   String classname;//标签名

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Classify classify = (Classify) o;
        return Objects.equals(id, classify.id) && Objects.equals(classname, classify.classname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, classname);
    }

    public Classify(Integer id, String classname) {
        this.id = id;
        this.classname = classname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public Classify() {
    }
}
